]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Sync hover after drag operations
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Jul 2018 18:51:40 +0000 (20:51 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 14 Aug 2018 17:34:57 +0000 (17:34 +0000)
During global grabs, actors miss enter and leave events required
for correct hover tracking. This can cause the workspace switcher
to get stuck while slid out, so ensure the actor's hover state is
synced after drag operations.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/161

js/ui/overviewControls.js

index a2905abb95eb065857bf592d9e3f5873e5265643..1b1c9cf10b835206800cd86dea70da466180a27f 100644 (file)
@@ -284,6 +284,11 @@ var ThumbnailsSlider = new Lang.Class({
         return child.get_theme_node().get_length('visible-width');
     },
 
+    _onDragEnd() {
+        this.actor.sync_hover();
+        this.parent();
+    },
+
     _getSlide() {
         if (!this._visible)
             return 0;